package zj.xinxin.api.moudle.security.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author junzhou
 * @date 2022/4/10 13:42
 * @since 1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleUpdateVo implements Serializable {

    @ApiModelProperty(value = "角色ID")
    @NotNull
    private Integer roleId;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @ApiModelProperty(value = "角色标识")
    @NotBlank(message = "角色标识不能为空！")
    private String roleKey;

    @ApiModelProperty(value = "角色排序")
    private Integer roleNum;

    @ApiModelProperty(value = "角色状态 （0正常 1禁用）")
    private Boolean isDisable;
}
